package com.sds.view.main;

import javax.swing.JFrame;

import com.sds.controller.main.MainFrameController;

@SuppressWarnings("serial")
public class MainFrame extends JFrame {
	private static MainFrame instance = null;
	
	private MainFrameController mfc = null;
	
	public static MainFrame getInstance() {
		if (instance == null) {
			instance = new MainFrame();
		}
		return instance;
	}
	
	private MainFrame() {
		this.mfc = MainFrameController.getInstance();
		
		
		int width = mfc.getWidth();
		int height = mfc.getHeight();
		
		setSize(width, height);
		
		String title = mfc.getTitle();
		setTitle(title);
				
		add(mfc.getMainTextField());
		
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setVisible(true);
	}
	
}
